Skip to content

Commit

Permalink
improve TestSkipNotExistsTable, integration_test.go after CI/CD failu…
Browse files Browse the repository at this point in the history
…re, CODE 60 CATCHED, but looks like DROP DATABASE return error
  • Loading branch information
Slach committed Dec 6, 2023
1 parent f243d55 commit 97ed0d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ func TestSkipNotExistsTable(t *testing.T) {
}()
wg.Wait()
r.True(freezeErrorHandled, "freezeErrorHandled false")
dropDbSQL := "DROP DATABASE freeze_not_exists"
dropDbSQL := "DROP DATABASE IF EXISTS freeze_not_exists"
if isAtomic, err := ch.chbackend.IsAtomic("freeze_not_exists"); err == nil && isAtomic {
dropDbSQL += " SYNC"
}
Expand Down Expand Up @@ -2528,6 +2528,9 @@ func (ch *TestClickHouse) checkDatabaseEngine(t *testing.T, data TestDataStruct)

func (ch *TestClickHouse) queryWithNoError(r *require.Assertions, query string, args ...interface{}) {
err := ch.chbackend.Query(query, args...)
if err != nil {
ch.chbackend.Log.Errorf("queryWithNoError error: %v", err)
}
r.NoError(err)
}

Expand Down

0 comments on commit 97ed0d0

Please sign in to comment.