Skip to content

Commit

Permalink
fix container job failures
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatsridhar95 committed Aug 22, 2023
1 parent a5d6617 commit 280dff4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/unittest/coordinator_sharding/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func setupShardMap() {
shard := 0
db, err := sql.Open("heraloop", fmt.Sprintf("%d:0:0", shard))
if err != nil {
t.Fatal("Error starting Mux:", err)
testutil.Fatal("Error starting Mux:", err)
return
}
db.SetMaxIdleConns(0)
Expand All @@ -62,7 +62,7 @@ func setupShardMap() {
defer cancel()
conn, err := db.Conn(ctx)
if err != nil {
t.Fatalf("Error getting connection %s\n", err.Error())
testutil.Fatalf("Error getting connection %s\n", err.Error())
}
defer conn.Close()

Expand Down
4 changes: 2 additions & 2 deletions tests/unittest/coordinator_sharding_mod/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func setupShardMap() {
shard := 0
db, err := sql.Open("heraloop", fmt.Sprintf("%d:0:0", shard))
if err != nil {
t.Fatal("Error starting Mux:", err)
testutil.Fatal("Error starting Mux:", err)
return
}
db.SetMaxIdleConns(0)
Expand All @@ -62,7 +62,7 @@ func setupShardMap() {
defer cancel()
conn, err := db.Conn(ctx)
if err != nil {
t.Fatalf("Error getting connection %s\n", err.Error())
testutil.Fatalf("Error getting connection %s\n", err.Error())
}
defer conn.Close()

Expand Down
2 changes: 1 addition & 1 deletion tests/unittest/log_checker/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func TestCalClientSessionDur(t *testing.T) {
conn.Close()
err = clientSessionDurLogScan()
if err != nil {
t.Fatalf("clientSessionDurLogScan %v")
t.Fatalf("clientSessionDurLogScan %v", err)
}
logger.GetLogger().Log(logger.Debug, "TestCalClientSessionDur done -------------------------------------------------------------")
}
Expand Down

0 comments on commit 280dff4

Please sign in to comment.