Skip to content

Commit

Permalink
Fix dev test error
Browse files Browse the repository at this point in the history
  • Loading branch information
josephschorr committed Sep 30, 2024
1 parent 234f806 commit ae2f1a3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/development/development_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ definition document {
func TestDevelopmentInvalidRelationship(t *testing.T) {
defer goleak.VerifyNone(t, goleak.IgnoreTopFunction("github.com/golang/glog.(*loggingT).flushDaemon"), goleak.IgnoreCurrent())

_, devErrs, err := NewDevContext(context.Background(), &devinterface.RequestContext{
_, _, err := NewDevContext(context.Background(), &devinterface.RequestContext{
Schema: `definition user {}
definition document {
Expand All @@ -72,10 +72,8 @@ definition document {
},
})

require.NoError(t, err)
require.NotNil(t, devErrs)
require.NotEmpty(t, devErrs.InputErrors)
require.Contains(t, devErrs.InputErrors[0].Message, "invalid resource id")
require.Error(t, err)
require.ErrorContains(t, err, "invalid resource id; must match")
}

func TestDevelopmentCaveatedExpectedRels(t *testing.T) {
Expand Down

0 comments on commit ae2f1a3

Please sign in to comment.