Skip to content

Commit 39169da

Browse files
authored
Fixed init for tests with empty named tables (acronis#41)
1 parent d6fa508 commit 39169da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

acronis-db-bench/engine/workers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ func initGeneric(b *benchmark.Benchmark, testDesc *TestDesc, rowsRequired uint64
5252
b.Vault.(*DBTestData).EventBus.CreateTables()
5353
}
5454

55+
testData := b.Vault.(*DBTestData)
56+
testData.TestDesc = testDesc
5557
tableName := testDesc.Table.TableName
5658
if tableName == "" {
5759
testDesc.Table.RowsCount = 0
@@ -65,8 +67,6 @@ func initGeneric(b *benchmark.Benchmark, testDesc *TestDesc, rowsRequired uint64
6567
}
6668

6769
conn := ddlConnDatabase
68-
testData := b.Vault.(*DBTestData)
69-
testData.TestDesc = testDesc
7070

7171
t := testRegistry.GetTableByName(tableName)
7272

0 commit comments

Comments
 (0)