Skip to content

Commit

Permalink
Merge pull request #641 from akalin/fix-test-call
Browse files Browse the repository at this point in the history
Actually check the value of RunTests
  • Loading branch information
mattn committed Sep 24, 2018
2 parents 6de94b0 + 3955886 commit e85a279
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sqlite3_test.go
Expand Up @@ -1731,7 +1731,10 @@ func TestSuite(t *testing.T) {
defer d.Close()

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

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

0 comments on commit e85a279

Please sign in to comment.