From 2107ee1ec1f0824ddc7135b340e7cd88422e31f4 Mon Sep 17 00:00:00 2001 From: moul <94029+moul@users.noreply.github.com> Date: Wed, 11 Oct 2023 11:27:32 +0200 Subject: [PATCH 1/3] chore: make txtar test consistent Signed-off-by: moul <94029+moul@users.noreply.github.com> --- .../pkg/integration/testdata/gnokey.txtar | 34 +++++++------------ 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/gno.land/pkg/integration/testdata/gnokey.txtar b/gno.land/pkg/integration/testdata/gnokey.txtar index e4d2c93c0c9..123a0ce291c 100644 --- a/gno.land/pkg/integration/testdata/gnokey.txtar +++ b/gno.land/pkg/integration/testdata/gnokey.txtar @@ -6,27 +6,19 @@ gnoland start ## test1 account should be available on default gnokey query auth/accounts/${USER_ADDR_test1} -cmp stdout gnokey-query-valid.stdout.golden -cmp stderr gnokey-query-valid.stderr.golden +stdout 'height: 0' +stdout 'data: {' +stdout ' "BaseAccount": {' +stdout ' "address": "g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5",' +stdout ' "coins": "[0-9]*ugnot",' # dynamic +stdout ' "public_key": null,' +stdout ' "account_number": "0",' +stdout ' "sequence": "0"' +stdout ' }' +stdout '}' +! stderr '.+' # empty ## invalid gnokey command should raise an error ! gnokey query foo/bar -cmp stdout gnokey-query-invalid.stdout.golden -cmp stderr gnokey-query-invalid.stderr.golden - --- gnokey-query-valid.stdout.golden -- -height: 0 -data: { - "BaseAccount": { - "address": "g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5", - "coins": "9999892000000ugnot", - "public_key": null, - "account_number": "0", - "sequence": "0" - } -} --- gnokey-query-valid.stderr.golden -- --- gnokey-query-invalid.stdout.golden -- -Log: --- gnokey-query-invalid.stderr.golden -- -"gnokey" error: unknown request error +stdout 'Log:' +stderr '"gnokey" error: unknown request error' From f533caec3fa081940294fafcfeb48e6ac87b7b59 Mon Sep 17 00:00:00 2001 From: moul <94029+moul@users.noreply.github.com> Date: Wed, 11 Oct 2023 11:32:27 +0200 Subject: [PATCH 2/3] chore: temporarily disable broken tests Signed-off-by: moul <94029+moul@users.noreply.github.com> --- gno.land/cmd/gnoweb/main_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gno.land/cmd/gnoweb/main_test.go b/gno.land/cmd/gnoweb/main_test.go index 579e1bcd06b..8b5ecdc2927 100644 --- a/gno.land/cmd/gnoweb/main_test.go +++ b/gno.land/cmd/gnoweb/main_test.go @@ -12,6 +12,7 @@ import ( ) func TestRoutes(t *testing.T) { + t.Skip("depends on an inmemory gnoland node.") ok := http.StatusOK routes := []struct { route string From 02896cfe8de6649488888c871dc02badb3871b7d Mon Sep 17 00:00:00 2001 From: moul <94029+moul@users.noreply.github.com> Date: Wed, 11 Oct 2023 12:43:16 +0200 Subject: [PATCH 3/3] Revert "chore: temporarily disable broken tests" This reverts commit f533caec3fa081940294fafcfeb48e6ac87b7b59. --- gno.land/cmd/gnoweb/main_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/gno.land/cmd/gnoweb/main_test.go b/gno.land/cmd/gnoweb/main_test.go index 8b5ecdc2927..579e1bcd06b 100644 --- a/gno.land/cmd/gnoweb/main_test.go +++ b/gno.land/cmd/gnoweb/main_test.go @@ -12,7 +12,6 @@ import ( ) func TestRoutes(t *testing.T) { - t.Skip("depends on an inmemory gnoland node.") ok := http.StatusOK routes := []struct { route string