Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-tsirpanis committed Oct 21, 2024
1 parent 4dc4c78 commit 1878cb1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/regression/targets/sc-18250.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <test/support/tdb_catch.h>

static const char* schema_str = R"rstr(
static constexpr std::string_view schema_str = R"rstr(
{"arrayType":"dense","attributes":[{
"cellValNum":1,"compressor":"NO_COMPRESSION",
"compressorLevel":-1,"name":"a1","type":"INT32"}],
Expand Down Expand Up @@ -33,11 +33,10 @@ TEST_CASE(
status = tiledb_buffer_alloc(ctx, &buf);
REQUIRE(status == TILEDB_OK);

status =
tiledb_buffer_set_data(ctx, buf, (void*)schema_str, sizeof(schema_str));
status = tiledb_buffer_set_data(
ctx, buf, (void*)schema_str.data(), schema_str.size());
REQUIRE(status == TILEDB_OK);

status = tiledb_deserialize_array_schema(
ctx, buf, tiledb_serialization_type_t(0), 0, &schema);
status = tiledb_deserialize_array_schema(ctx, buf, TILEDB_JSON, 0, &schema);
REQUIRE(status == TILEDB_OK);
}

0 comments on commit 1878cb1

Please sign in to comment.