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
|
// The tests. Within these tests %DB% and %RP% will be replaced with the database and retention passed into
|
||||||
// this function.
|
// this function.
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
|
skip bool // Skip the test.
|
||||||
reset bool // Delete and recreate the database.
|
reset bool // Delete and recreate the database.
|
||||||
name string // Test name, for easy-to-read test log output.
|
name string // Test name, for easy-to-read test log output.
|
||||||
write string // If equal to the empty string, no data is written.
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if tt.skip {
|
||||||
|
t.Logf("SKIPPING TEST %s", tt.name)
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Printf("TEST: %d: %s\n", i, name)
|
fmt.Printf("TEST: %d: %s\n", i, name)
|
||||||
t.Logf("Running test %d: %s", i, name)
|
t.Logf("Running test %d: %s", i, name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue