examples/chat2-reliable/chat_reliability_test.go
Function TestNetworkPartition
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestNetworkPartition(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
defer cancel()
t.Log("Starting TestMessageRecovery")
Function TestNetworkPartition
has 5 return statements (exceeds 4 allowed). Open
Open
func TestNetworkPartition(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
defer cancel()
t.Log("Starting TestMessageRecovery")