Skip to content

Commit 1a3b81a

Browse files
committed
Fix invasive test
1 parent 604283e commit 1a3b81a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/CoreTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include "openPMD/IO/ADIOS/macros.hpp"
1313
#include "openPMD/auxiliary/Filesystem.hpp"
14-
#include "openPMD/auxiliary/JSON.hpp"
14+
#include "openPMD/auxiliary/Memory_internal.hpp"
1515
#include "openPMD/auxiliary/UniquePtr.hpp"
1616

1717
#include <catch2/catch.hpp>
@@ -1252,7 +1252,7 @@ TEST_CASE("use_count_test", "[core]")
12521252
std::get<std::shared_ptr<void const>>(
12531253
static_cast<Parameter<Operation::WRITE_DATASET> *>(
12541254
pprc.get().m_chunks.front().parameter.get())
1255-
->data.m_buffer)
1255+
->data.as_variant<auxiliary::WriteBufferTypes>())
12561256
.use_count() == 1);
12571257
#endif
12581258
}

0 commit comments

Comments
 (0)