GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 5e8f9ac5 authored by Cecylia Bocovich's avatar Cecylia Bocovich

Update proxy tests to check serialization errors

parent 1d2df3cd
......@@ -198,7 +198,7 @@ func TestSessionDescriptions(t *testing.T) {
},
},
} {
desc := util.DeserializeSessionDescription(test.msg)
desc, _ := util.DeserializeSessionDescription(test.msg)
So(desc, ShouldResemble, test.ret)
}
})
......@@ -215,8 +215,9 @@ func TestSessionDescriptions(t *testing.T) {
`{"type":"offer","sdp":"test"}`,
},
} {
msg := util.SerializeSessionDescription(test.desc)
msg, err := util.SerializeSessionDescription(test.desc)
So(msg, ShouldResemble, test.ret)
So(err, ShouldBeNil)
}
})
}
......@@ -240,7 +241,7 @@ func TestBrokerInteractions(t *testing.T) {
},
}
pc, _ := webrtc.NewPeerConnection(config)
offer := util.DeserializeSessionDescription(sampleOffer)
offer, _ := util.DeserializeSessionDescription(sampleOffer)
pc.SetRemoteDescription(*offer)
answer, _ := pc.CreateAnswer(nil)
pc.SetLocalDescription(answer)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment