aboutsummaryrefslogtreecommitdiffstats
path: root/storageapi
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-11-25 11:42:47 +0100
committerTor Egge <Tor.Egge@broadpark.no>2020-11-25 11:42:47 +0100
commite3c7603e019c49a58707f64a3f8d0b86e7dcb1df (patch)
tree44c51041598fa15c7da2d7c9aabe37d2bae57db6 /storageapi
parent7af5735d3337a64e1ca45dad7837c90211f36ced (diff)
Handle different size of std::string.
Diffstat (limited to 'storageapi')
-rw-r--r--storageapi/src/tests/mbusprot/storageprotocoltest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
index 6f629d3dd94..68eb4a90c9f 100644
--- a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
+++ b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
@@ -830,10 +830,10 @@ TEST_P(StorageProtocolTest, track_memory_footprint_for_some_messages) {
EXPECT_EQ(80u, sizeof(StorageCommand));
EXPECT_EQ(104u, sizeof(BucketCommand));
EXPECT_EQ(104u, sizeof(BucketInfoCommand));
- EXPECT_EQ(112u, sizeof(TestAndSetCommand));
- EXPECT_EQ(144u, sizeof(PutCommand));
- EXPECT_EQ(144u, sizeof(UpdateCommand));
- EXPECT_EQ(224u, sizeof(RemoveCommand));
+ EXPECT_EQ(104u + sizeof(std::string), sizeof(TestAndSetCommand));
+ EXPECT_EQ(136u + sizeof(std::string), sizeof(PutCommand));
+ EXPECT_EQ(136u + sizeof(std::string), sizeof(UpdateCommand));
+ EXPECT_EQ(216u + sizeof(std::string), sizeof(RemoveCommand));
EXPECT_EQ(288u, sizeof(GetCommand));
}