Skip to content

Commit 34f78c4

Browse files
committed
test progress
1 parent ebdb725 commit 34f78c4

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

core/retry_test.go

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -948,19 +948,17 @@ func TestSendSignedTaskResponse(t *testing.T) {
948948
fmt.Errorf("Could not start Aggregator %s", err)
949949
}
950950
}()
951-
if err != nil {
952-
fmt.Errorf("Could not start Aggregator %s", err)
953-
}
954951

955952
logger := operatorConfig.BaseConfig.Logger
956953
rpcClient, err := operator.NewAggregatorRpcClient(operatorConfig.Operator.AggregatorServerIpPortAddress, logger)
957954
// This is a mock to verify that a lost connection to the aggregator does not return anything.
958-
disconnected_rpcClient, err := operator.NewAggregatorRpcClient("localhost:8999", logger)
959-
if err != nil {
960-
fmt.Errorf("Could not create RPC client: %s. Is aggregator running?", err)
961-
}
955+
/*
956+
disconnected_rpcClient, err := operator.NewAggregatorRpcClient("localhost:8999", logger)
957+
if err != nil {
958+
fmt.Errorf("Could not create RPC client: %s. Is aggregator running?", err)
959+
}
960+
*/
962961

963-
//zero_bytes := [32]byte{}
964962
signedTaskResponse := &core_types.SignedTaskResponse{
965963
BatchIdentifierHash: [32]byte{},
966964
BatchMerkleRoot: [32]byte{},
@@ -973,21 +971,17 @@ func TestSendSignedTaskResponse(t *testing.T) {
973971
_, err = task_resp_func()
974972
assert.Nil(t, err)
975973

976-
fmt.Printf("stuff")
977-
task_resp_func = operator.SendSignedTaskResponse(disconnected_rpcClient, signedTaskResponse)
978-
// NOTE: This the expected behavior of a net/rpc/clint/Go for an invalid connection ref: https://cs.opensource.google/go/go/+/refs/tags/go1.23.3:src/net/rpc/client.go;l=298
979-
assert.Panics(t, func() { _, err = task_resp_func() })
980-
fmt.Printf("error: %s", err)
981-
assert.Nil(t, err)
982-
983-
task_resp_func = operator.SendSignedTaskResponse(rpcClient, signedTaskResponse)
984-
_, err = task_resp_func()
985-
assert.Nil(t, err)
986-
987974
// Kill Aggregator
988975
cancel()
989976

990-
if err := cmd.Process.Kill(); err != nil {
977+
/*
978+
fmt.Printf("stuff")
979+
task_resp_func = operator.SendSignedTaskResponse(disconnected_rpcClient, signedTaskResponse)
980+
// NOTE: This the expected behavior of a net/rpc/clint/Go for an invalid connection ref: https://cs.opensource.google/go/go/+/refs/tags/go1.23.3:src/net/rpc/client.go;l=298
981+
assert.Panics(t, func() { _, err = task_resp_func() })
982+
*/
983+
984+
if err = cmd.Process.Kill(); err != nil {
991985
t.Errorf("Error killing process: %v\n", err)
992986
return
993987
}

0 commit comments

Comments
 (0)