From 752490f01f998d076c456ce2c2a03e0250a20807 Mon Sep 17 00:00:00 2001 From: Stefan Date: Wed, 27 Mar 2024 22:59:42 +0200 Subject: [PATCH] Debugging db lock --- test/status-go/integration/go.mod | 5 +++-- test/status-go/integration/go.sum | 4 ++-- .../integration/wallet/accountlogin_test.go | 22 +++++++++++++++++++ test/status-go/integration/wallet/common.go | 2 +- 4 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 test/status-go/integration/wallet/accountlogin_test.go diff --git a/test/status-go/integration/go.mod b/test/status-go/integration/go.mod index d9fc0d6b8e..bcfb915ac0 100644 --- a/test/status-go/integration/go.mod +++ b/test/status-go/integration/go.mod @@ -21,7 +21,8 @@ replace github.com/mutecomm/go-sqlcipher/v4 v4.4.2 => github.com/status-im/go-sq require ( github.com/ethereum/go-ethereum v1.10.26 - github.com/status-im/status-go v0.171.7 + // See status-go/VERSION + github.com/status-im/status-go v0.177.0 github.com/stretchr/testify v1.8.4 ) @@ -241,7 +242,7 @@ require ( github.com/urfave/cli/v2 v2.24.4 // indirect github.com/waku-org/go-discover v0.0.0-20240129014929-85f2c00b96a3 // indirect github.com/waku-org/go-libp2p-rendezvous v0.0.0-20230628220917-7b4e5ae4c0e7 // indirect - github.com/waku-org/go-waku v0.8.1-0.20240130093642-77ea359ef873 // indirect + github.com/waku-org/go-waku v0.8.1-0.20240322182925-dd81e1d46971 // indirect github.com/waku-org/go-zerokit-rln v0.1.14-0.20240102145250-fa738c0bdf59 // indirect github.com/waku-org/go-zerokit-rln-apple v0.0.0-20230916172309-ee0ee61dde2b // indirect github.com/waku-org/go-zerokit-rln-arm v0.0.0-20230916171929-1dd9494ff065 // indirect diff --git a/test/status-go/integration/go.sum b/test/status-go/integration/go.sum index c37fb1053e..d595f9c14e 100644 --- a/test/status-go/integration/go.sum +++ b/test/status-go/integration/go.sum @@ -2096,8 +2096,8 @@ github.com/waku-org/go-discover v0.0.0-20240129014929-85f2c00b96a3 h1:Kk0KYXZE/u github.com/waku-org/go-discover v0.0.0-20240129014929-85f2c00b96a3/go.mod h1:eBHgM6T4EG0RZzxpxKy+rGz/6Dw2Nd8DWxS0lm9ESDw= github.com/waku-org/go-libp2p-rendezvous v0.0.0-20230628220917-7b4e5ae4c0e7 h1:0e1h+p84yBp0IN7AqgbZlV7lgFBjm214lgSOE7CeJmE= github.com/waku-org/go-libp2p-rendezvous v0.0.0-20230628220917-7b4e5ae4c0e7/go.mod h1:pFvOZ9YTFsW0o5zJW7a0B5tr1owAijRWJctXJ2toL04= -github.com/waku-org/go-waku v0.8.1-0.20240130093642-77ea359ef873 h1:pnUvFENjM/h7HVF8VsNWTmOXx/rYs62P7H2EFjAnwVw= -github.com/waku-org/go-waku v0.8.1-0.20240130093642-77ea359ef873/go.mod h1:RjTvkTrIwpoT1cM9HeQqwa2Q7t7WOkb3hpuB/zuZ6SM= +github.com/waku-org/go-waku v0.8.1-0.20240322182925-dd81e1d46971 h1:HSR8JmscSmCtpIAzFO5sNZRyYZbO8nw7rGM3QcC9bak= +github.com/waku-org/go-waku v0.8.1-0.20240322182925-dd81e1d46971/go.mod h1:RjTvkTrIwpoT1cM9HeQqwa2Q7t7WOkb3hpuB/zuZ6SM= github.com/waku-org/go-zerokit-rln v0.1.14-0.20240102145250-fa738c0bdf59 h1:jisj+OCI6QydLtFq3Pyhu49wl9ytPN7oAHjMfepHDrA= github.com/waku-org/go-zerokit-rln v0.1.14-0.20240102145250-fa738c0bdf59/go.mod h1:1PdBdPzyTaKt3VnpAHk3zj+r9dXPFOr3IHZP9nFle6E= github.com/waku-org/go-zerokit-rln-apple v0.0.0-20230916172309-ee0ee61dde2b h1:KgZVhsLkxsj5gb/FfndSCQu6VYwALrCOgYI3poR95yE= diff --git a/test/status-go/integration/wallet/accountlogin_test.go b/test/status-go/integration/wallet/accountlogin_test.go new file mode 100644 index 0000000000..756966e8bc --- /dev/null +++ b/test/status-go/integration/wallet/accountlogin_test.go @@ -0,0 +1,22 @@ +// These tests are for development only to be run manually +// There is more work needed to automate them not to depend on an existing account and internet connection + +package wallet + +import ( + "fmt" + "testing" + + "github.com/status-im/status-desktop/test/status-go/integration/helpers" + "github.com/stretchr/testify/require" +) + +// TODO DEV used to debug the DB lock at login experienced with broken account +func TestAccountLogin(t *testing.T) { + _ /*td*/, close := setupAccountsAndTransactions(t) + defer close() + + res, err := helpers.CallPrivateMethod("wakuext_startMessenger", nil) + require.NoError(t, err) + fmt.Println("@dd res:", res) +} diff --git a/test/status-go/integration/wallet/common.go b/test/status-go/integration/wallet/common.go index e6a56cfc12..6772d32013 100644 --- a/test/status-go/integration/wallet/common.go +++ b/test/status-go/integration/wallet/common.go @@ -25,7 +25,7 @@ type testUserData struct { func setupAccountsAndTransactions(t *testing.T) (td testUserData, close func()) { eventQueue, conf, _ := helpers.LoginToTestAccount(t) - _, err := helpers.WaitForEvent(eventQueue, helpers.NodeReadyEvent, 60*time.Second) + _, err := helpers.WaitForEvent(eventQueue, helpers.NodeReadyEvent, 600000*time.Second) require.NoError(t, err) opAccounts, err := helpers.GetWalletOperableAccounts()