mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 08:02:43 +02:00
Fix test to use template version of RingBuffer
This commit is contained in:
@@ -11,7 +11,7 @@ using namespace std;
|
||||
// Shape * 2 bytes/value (uint16_t)
|
||||
size_t image_n_bytes = 1024*2*2;
|
||||
|
||||
void generate_frames(RingBuffer& ring_buffer, int n_frames)
|
||||
void generate_frames(RingBuffer<FrameMetadata>& ring_buffer, int n_frames)
|
||||
{
|
||||
size_t y_length = 2;
|
||||
size_t x_length = 1024;
|
||||
@@ -47,7 +47,7 @@ TEST(H5WriteModule, basic_interaction)
|
||||
{
|
||||
TestH5Format format("start_dataset");
|
||||
|
||||
RingBuffer ring_buffer(10);
|
||||
RingBuffer<FrameMetadata> ring_buffer(10);
|
||||
ring_buffer.initialize(image_n_bytes);
|
||||
|
||||
H5WriteModule h5_write_module(ring_buffer, {}, format);
|
||||
|
||||
Reference in New Issue
Block a user