Skip to content

Commit 32ff58b

Browse files
committed
Fixed es tests
1 parent 7446f6f commit 32ff58b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

db/es/es_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ func logDbTime(t *testing.T, c *db.Context) {
9595
func cleanup(t *testing.T, dbo db.Database) {
9696
t.Helper()
9797

98+
exists, err := dbo.TableExists("perf_table")
99+
if err != nil {
100+
t.Error("check table exists", err)
101+
return
102+
}
103+
104+
if !exists {
105+
return
106+
}
107+
98108
if err := dbo.DropTable("perf_table"); err != nil {
99109
t.Error("drop table", err)
100110
return

0 commit comments

Comments
 (0)