From 19f90c152c53f223c421d4546b42ad563ea3ee9c Mon Sep 17 00:00:00 2001 From: gfanton <8671905+gfanton@users.noreply.github.com> Date: Thu, 18 Jan 2024 11:26:37 +0100 Subject: [PATCH] fix: update simple test Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com> --- gno.land/pkg/gnoclient/client_test.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gno.land/pkg/gnoclient/client_test.go b/gno.land/pkg/gnoclient/client_test.go index e1b59d2d466..418a95aa997 100644 --- a/gno.land/pkg/gnoclient/client_test.go +++ b/gno.land/pkg/gnoclient/client_test.go @@ -1,7 +1,6 @@ package gnoclient import ( - "fmt" "testing" "github.com/gnolang/gno/gno.land/pkg/integration" @@ -44,11 +43,10 @@ func TestClient_Request(t *testing.T) { data, res, err := client.Render("gno.land/r/demo/boards", "") require.NoError(t, err) + require.NotEmpty(t, data) - // XXX: need more test + require.NotNil(t, res) + require.NotEmpty(t, res.Response.Data) - // XXX: need validation - fmt.Println("data:", data) - fmt.Println("res: ", res) - require.FailNow(t, "forcing failure: replace this by a real test") + // XXX: need more test }