refactor(simplequicping): use step-by-step (#852)
See https://github.com/ooni/probe/issues/2159 and https://github.com/ooni/spec/pull/254
This commit is contained in:
parent
fbd7cd2b7e
commit
69602abe8a
16 changed files with 922 additions and 26 deletions
|
|
@ -120,6 +120,7 @@ func TestNewTLSHandshakerStdlib(t *testing.T) {
|
|||
}
|
||||
expectedFailure := "unknown_failure: mocked"
|
||||
expect := &model.ArchivalTLSOrQUICHandshakeResult{
|
||||
Network: "tls",
|
||||
Address: "1.1.1.1:443",
|
||||
CipherSuite: "",
|
||||
Failure: &expectedFailure,
|
||||
|
|
@ -273,6 +274,7 @@ func TestNewTLSHandshakerStdlib(t *testing.T) {
|
|||
t.Fatal("expected to see a single TLSHandshake event")
|
||||
}
|
||||
expected := &model.ArchivalTLSOrQUICHandshakeResult{
|
||||
Network: "tls",
|
||||
Address: conn.RemoteAddr().String(),
|
||||
CipherSuite: netxlite.TLSCipherSuiteString(connState.CipherSuite),
|
||||
Failure: nil,
|
||||
|
|
|
|||
Loading…
Reference in a new issue