Skip to content

Commit

Permalink
Convert tests to use testify
Browse files Browse the repository at this point in the history
Add testify to dependencies
Rewrite tests to use testify
Ignore test that has a permission issue
  • Loading branch information
phughk authored and Keitio committed Mar 9, 2023
1 parent 79eb406 commit d79cbe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ func TestUnmarshalRaw(t *testing.T) {
assert.NoError(t, err)

_, err = db.Delete(ctx, "users")
if err != nil {
t.Fatal(err)
}
assert.NoError(t, err)

username := "johnny"
password := "123"
Expand Down
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ module github.com/surrealdb/surrealdb.go

go 1.18

require (
github.com/gorilla/websocket v1.5.0
github.com/stretchr/testify v1.8.2
)
require github.com/gorilla/websocket v1.5.0

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/stretchr/testify v1.8.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

0 comments on commit d79cbe8

Please sign in to comment.