Skip to content

Commit a229b1f

Browse files
One more fix
1 parent 54f66fb commit a229b1f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/warehouseapp.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ TEST_CASE_METHOD(IntegrationTest, "warehouse_test", TEST_MODULE) {
99
rpcServer.Add("GetProduct", GetHandle(&WarehouseServer::GetProduct, app));
1010
rpcServer.Add("AddProduct", GetHandle(&WarehouseServer::AddProduct, app));
1111

12-
Product p = {"0xff", 22.4, "Product 1", category::cash_carry};
12+
Product p;
13+
p.id = "0xff";
14+
p.price = 22.4;
15+
p.name = "Product 1";
16+
p.cat = category::cash_carry;
1317
CHECK(client.CallMethod<bool>(1, "AddProduct", {p}));
1418

1519
Product p2 = client.CallMethod<Product>(1, "GetProduct", {"0xff"});
1620
CHECK((p2.id == p.id && p2.name == p.name && p2.price == p.price && p2.cat == p.cat));
17-
}
21+
}

0 commit comments

Comments
 (0)