Allow integration tests to be skipped
parent
8fe4e428a7
commit
3e59dac0fb
|
@ -351,6 +351,7 @@ func runTestsData(t *testing.T, testName string, nodes Cluster, database, retent
|
|||
// The tests. Within these tests %DB% and %RP% will be replaced with the database and retention passed into
|
||||
// this function.
|
||||
tests := []struct {
|
||||
skip bool // Skip the test.
|
||||
reset bool // Delete and recreate the database.
|
||||
name string // Test name, for easy-to-read test log output.
|
||||
write string // If equal to the empty string, no data is written.
|
||||
|
@ -1110,6 +1111,10 @@ func runTestsData(t *testing.T, testName string, nodes Cluster, database, retent
|
|||
continue
|
||||
}
|
||||
|
||||
if tt.skip {
|
||||
t.Logf("SKIPPING TEST %s", tt.name)
|
||||
}
|
||||
|
||||
fmt.Printf("TEST: %d: %s\n", i, name)
|
||||
t.Logf("Running test %d: %s", i, name)
|
||||
|
||||
|
|
Loading…
Reference in New Issue