Skip to content

Commit e85a279

Browse files
authored
Merge pull request #641 from akalin/fix-test-call
Actually check the value of RunTests
2 parents 6de94b0 + 3955886 commit e85a279

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sqlite3_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,10 @@ func TestSuite(t *testing.T) {
17311731
defer d.Close()
17321732

17331733
db = &TestDB{t, d, SQLITE, sync.Once{}}
1734-
testing.RunTests(func(string, string) (bool, error) { return true, nil }, tests)
1734+
ok := testing.RunTests(func(string, string) (bool, error) { return true, nil }, tests)
1735+
if !ok {
1736+
t.Fatal("A subtest failed")
1737+
}
17351738

17361739
if !testing.Short() {
17371740
for _, b := range benchmarks {

0 commit comments

Comments
 (0)