Skip to content

Commit a6f12d8

Browse files
authored
chore(examples): add SetRealm context for testing on mgroups (#4201)
This fixes the failing tests for this package realm. By setting `testing.SetRealm(std.NewCodeRealm("gno.land/r/test/test"))`, it allows the testing suite to configure the proper realm context needed for the new cross/crossing constraints.
1 parent 17bb02a commit a6f12d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/gno.land/p/n2p5/mgroup/mgroup_test.gno

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111

1212
func TestManagedGroup(t *testing.T) {
1313
t.Parallel()
14+
testing.SetRealm(std.NewCodeRealm("gno.land/r/test/test"))
1415

1516
u1 := testutils.TestAddress("u1")
1617
u2 := testutils.TestAddress("u2")

0 commit comments

Comments
 (0)