mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-10-27 05:31:28 +01:00
Adjust tests for new behaviour of UdpReceiver
This commit is contained in:
1 parent
6074cb4705
commit
a4354d83cc
1 file changed
+2
-3
@@ -35,7 +35,8 @@ TEST(UdpRecvModule, simple_recv)
|
||||
|
||||
this_thread::sleep_for(chrono::milliseconds(100));
|
||||
|
||||
ASSERT_TRUE(ring_buffer.is_empty());
|
||||
// The first slot should be already reserved in the ring buffer.
|
||||
ASSERT_FALSE(ring_buffer.is_empty());
|
||||
|
||||
auto send_socket_fd = socket(AF_INET,SOCK_DGRAM,0);
|
||||
ASSERT_TRUE(send_socket_fd >= 0);
|
||||
@@ -46,8 +47,6 @@ TEST(UdpRecvModule, simple_recv)
|
||||
send_udp_buffer.bunchid = 100;
|
||||
send_udp_buffer.debug = 1000;
|
||||
|
||||
ASSERT_TRUE(ring_buffer.is_empty());
|
||||
|
||||
send_udp_buffer.framenum = 1;
|
||||
for (size_t i=0; i<n_msg; i++) {
|
||||
send_udp_buffer.packetnum = i;
|
||||
|
||||
Reference in new issue
Block a user