Skip to content

Commit

Permalink
test(i): Skip test when detecting changes (sourcenetwork#3234)
Browse files Browse the repository at this point in the history
## Relevant issue(s)

Resolves sourcenetwork#3233

## Description

Skip test `TestQuerySimpleWithCid` when detecting changes as the change
detector does not support asserting panics.

Note: The CI wont pass until *after* this is merged to develop, so
someone will need to change the requiredness of the job so that this can
merge.
  • Loading branch information
AndrewSisley authored Nov 11, 2024
1 parent 85bbdc0 commit a89524a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/query/simple/with_cid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/sourcenetwork/immutable"
"github.com/stretchr/testify/require"

"github.com/sourcenetwork/defradb/tests/change_detector"
testUtils "github.com/sourcenetwork/defradb/tests/integration"
)

Expand Down Expand Up @@ -46,6 +47,10 @@ func TestQuerySimpleWithInvalidCid(t *testing.T) {
// This test documents a bug:
// https://github.com/sourcenetwork/defradb/issues/3214
func TestQuerySimpleWithCid(t *testing.T) {
if change_detector.Enabled {
t.Skipf("Change detector does not support requiring panics")
}

test := testUtils.TestCase{
SupportedClientTypes: immutable.Some(
[]testUtils.ClientType{
Expand Down

0 comments on commit a89524a

Please sign in to comment.