feat: green — Fix: multiprocess tests INSERT without issues.description and report OK on zero writes; dolt init has no identity (refs be-kafb)
This commit is contained in:
parent
ed382cbdb8
commit
fa825dcbd6
2 changed files with 9 additions and 4 deletions
|
|
@ -215,7 +215,7 @@ func TestMultiProcessSchemaInit_DoltVerify(t *testing.T) {
|
|||
t.Fatalf("mkdir dolt: %v", err)
|
||||
}
|
||||
|
||||
initCmd := exec.Command(doltPath, "init")
|
||||
initCmd := exec.Command(doltPath, "init", "--name", "test", "--email", "test@example.com")
|
||||
initCmd.Dir = doltDir
|
||||
initCmd.Env = append(os.Environ(), "HOME="+tmpDir, "DOLT_ROOT_PATH="+tmpDir)
|
||||
if out, err := initCmd.CombinedOutput(); err != nil {
|
||||
|
|
@ -293,7 +293,7 @@ func TestMultiProcessSchemaInit_DoltVerify(t *testing.T) {
|
|||
dbDir = doltDir
|
||||
}
|
||||
|
||||
verifyCmd := exec.Command(doltPath, "verify")
|
||||
verifyCmd := exec.Command(doltPath, "fsck")
|
||||
verifyCmd.Dir = dbDir
|
||||
verifyCmd.Env = append(os.Environ(), "HOME="+tmpDir, "DOLT_ROOT_PATH="+tmpDir)
|
||||
verifyOut, verifyErr := verifyCmd.CombinedOutput()
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ func TestHelperMultiStore(t *testing.T) {
|
|||
var inserted bool
|
||||
for retry := 0; retry < 5; retry++ {
|
||||
_, err := db.ExecContext(ctx,
|
||||
"INSERT INTO issues (id, title, status, priority, issue_type, created_at, updated_at) VALUES (?, ?, 'open', 2, 'task', NOW(6), NOW(6))",
|
||||
"INSERT INTO issues (id, title, description, design, acceptance_criteria, notes, status, priority, issue_type, created_at, updated_at) VALUES (?, ?, '', '', '', '', 'open', 2, 'task', NOW(6), NOW(6))",
|
||||
issueID, title,
|
||||
)
|
||||
if err == nil {
|
||||
|
|
@ -106,6 +106,11 @@ func TestHelperMultiStore(t *testing.T) {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
if created != numOps || count != created {
|
||||
fmt.Fprintf(os.Stderr, "FAIL proc=%s created=%d verified=%d numOps=%d\n", procID, created, count, numOps)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Fprintf(os.Stdout, "OK proc=%s created=%d verified=%d\n", procID, created, count)
|
||||
}
|
||||
|
||||
|
|
@ -174,7 +179,7 @@ func TestMultiStoreConcurrent_InProcess(t *testing.T) {
|
|||
id := fmt.Sprintf("ms-%d-%d", idx, op)
|
||||
title := fmt.Sprintf("Multi-store issue %d-%d", idx, op)
|
||||
_, err := db.ExecContext(egCtx,
|
||||
"INSERT INTO issues (id, title, status, priority, issue_type, created_at, updated_at) VALUES (?, ?, 'open', 2, 'task', NOW(6), NOW(6))",
|
||||
"INSERT INTO issues (id, title, description, design, acceptance_criteria, notes, status, priority, issue_type, created_at, updated_at) VALUES (?, ?, '', '', '', '', 'open', 2, 'task', NOW(6), NOW(6))",
|
||||
id, title,
|
||||
)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue