mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 01:02:42 +02:00
Adjust tests for new behaviour of UdpReceiver
This commit is contained in:
@@ -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