Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug rpc server #4

Merged
merged 7 commits into from
Mar 14, 2024
Merged

Debug rpc server #4

merged 7 commits into from
Mar 14, 2024

Conversation

Senna46
Copy link
Contributor

@Senna46 Senna46 commented Mar 14, 2024

No description provided.

@@ -46,7 +46,7 @@ func NewNetwork(t testing.TB, cfg *Config) (cctx Context, rpcAddr, grpcAddr stri
require.NoError(t, err)

t.Cleanup(func() {
t.Log("tearing down testnode")
// t.Log("tearing down testnode")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This log is mixed when errors occur.
ex.

--- FAIL: TestMaliciousTestNode (4.25s)
    /home/user/github.com/sunrise-zone/sunrise-app/test/util/malicious/app_test.go:85: 
        	Error Trace:	/home/user/github.com/sunrise-zone/sunrise-app/test/util/malicious/app_test.go:85
        	Error:      	Received unexpected error:
        	            	tx failed with code 2: tx parse error
        	Test:       	TestMaliciousTestNode
    /home/user/github.com/sunrise-zone/sunrise-app/test/util/malicious/network.go:49: tearing down testnode

/test/util/malicious/network.go is temp file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No log is required if successfully tearing down.

@kimurayu45z kimurayu45z merged commit e2d01ac into main Mar 14, 2024
1 check passed
@kimurayu45z kimurayu45z deleted the debug-rpc-server branch March 14, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants