Skip to content

Commit

Permalink
Make TestPutInMemoryDB work with Go versions before 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot committed Feb 16, 2024
1 parent 1a5c330 commit 9558786
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/box_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package objectbox_test

import (
"errors"
"github.com/objectbox/objectbox-go/test/assert"
"github.com/objectbox/objectbox-go/test/model"
"github.com/objectbox/objectbox-go/test/model/iot"
Expand Down Expand Up @@ -176,7 +175,8 @@ func TestPutInMemoryDB(t *testing.T) {
var dir = "memory:iot-test"
env := iot.NewTestEnvWithDir(t, dir)
_, err := os.Stat(dir)
assert.True(t, errors.Is(err, os.ErrNotExist)) // Must not exist in file system
assert.Err(t, err) // Must not exist in file system
// This is Go 1.13+ only: assert.True(t, errors.Is(err, os.ErrNotExist)) // Must not exist in file system
RunTestPut(t, env)
}

Expand Down

0 comments on commit 9558786

Please sign in to comment.