From 68b6e6bdd18dadee1f7a06d00420f5df719d3ada Mon Sep 17 00:00:00 2001 From: Norman Date: Sat, 28 Dec 2024 14:58:41 +0100 Subject: [PATCH] fix: test Signed-off-by: Norman --- examples/gno.land/r/demo/sessions/sessions.gno | 2 ++ examples/gno.land/r/demo/sessions/sessions_test.gno | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/gno.land/r/demo/sessions/sessions.gno b/examples/gno.land/r/demo/sessions/sessions.gno index 085d717d907..e4e9b129cfa 100644 --- a/examples/gno.land/r/demo/sessions/sessions.gno +++ b/examples/gno.land/r/demo/sessions/sessions.gno @@ -16,6 +16,8 @@ var ( source std.Realm ) +const NoExpiry = int64(0) + func init() { sessions = make(map[string]map[string]*time.Time) source = std.CurrentRealm() diff --git a/examples/gno.land/r/demo/sessions/sessions_test.gno b/examples/gno.land/r/demo/sessions/sessions_test.gno index 9f218cbd855..361e6865b09 100644 --- a/examples/gno.land/r/demo/sessions/sessions_test.gno +++ b/examples/gno.land/r/demo/sessions/sessions_test.gno @@ -32,7 +32,7 @@ func TestSessions(t *testing.T) { { std.TestSetRealm(aliceRealm) - Login(bobAddr, nil) + Login(bobAddr, NoExpiry) std.TestSetRealm(bobRealm)