Skip to content

Commit 7fcccf2

Browse files
authored
ci: fix Windows build after PR 2874 (#2876)
1 parent 198ce78 commit 7fcccf2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

silkworm/sync/sync_pos_test.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ TEST_CASE_METHOD(PoSSyncTest, "PoSSync::new_payload.get_header_timeout", "[sync]
116116
co_return BlockHeader{};
117117
}));
118118

119-
CHECK(spawn_and_wait(sync_.new_payload(request, 1ms)).status == rpc::PayloadStatus::kSyncingStr);
119+
CHECK(spawn_and_wait(sync_.new_payload(request, 1ms)).status == std::string{rpc::PayloadStatus::kSyncingStr});
120120
}
121121
}
122122
}
@@ -137,7 +137,7 @@ TEST_CASE_METHOD(PoSSyncTest, "PoSSync::new_payload.get_td_timeout", "[sync]") {
137137
co_return kSepoliaConfig.terminal_total_difficulty;
138138
}));
139139

140-
CHECK(spawn_and_wait(sync_.new_payload(request, 1ms)).status == rpc::PayloadStatus::kSyncingStr);
140+
CHECK(spawn_and_wait(sync_.new_payload(request, 1ms)).status == std::string{rpc::PayloadStatus::kSyncingStr});
141141
}
142142
}
143143
}
@@ -162,7 +162,7 @@ TEST_CASE_METHOD(PoSSyncTest, "PoSSync::new_payload.insert_blocks_timeout", "[sy
162162
co_return execution::api::InsertionResult{};
163163
}));
164164

165-
CHECK(spawn_and_wait(sync_.new_payload(request, 1ms)).status == rpc::PayloadStatus::kSyncingStr);
165+
CHECK(spawn_and_wait(sync_.new_payload(request, 1ms)).status == std::string{rpc::PayloadStatus::kSyncingStr});
166166
}
167167
}
168168
}
@@ -191,7 +191,7 @@ TEST_CASE_METHOD(PoSSyncTest, "PoSSync::new_payload.get_header_hash_number_timeo
191191
co_return payload.block_num;
192192
}));
193193

194-
CHECK(spawn_and_wait(sync_.new_payload(request, 1ms)).status == rpc::PayloadStatus::kSyncingStr);
194+
CHECK(spawn_and_wait(sync_.new_payload(request, 1ms)).status == std::string{rpc::PayloadStatus::kSyncingStr});
195195
}
196196
}
197197
}
@@ -250,7 +250,7 @@ TEST_CASE_METHOD(PoSSyncTest, "PoSSync::new_payload.validate_chain_success", "[s
250250
co_return execution::api::ValidChain{};
251251
}));
252252

253-
CHECK(spawn_and_wait(sync_.new_payload(request, 1ms)).status == rpc::PayloadStatus::kValidStr);
253+
CHECK(spawn_and_wait(sync_.new_payload(request, 1ms)).status == std::string{rpc::PayloadStatus::kValidStr});
254254
}
255255
}
256256
}
@@ -265,7 +265,7 @@ static const rpc::ForkChoiceUpdatedRequest kInvalidForkChoiceUpdatedRequest{
265265

266266
TEST_CASE_METHOD(PoSSyncTest, "PoSSync::fork_choice_updated.invalid_request", "[sync]") {
267267
const auto request = kInvalidForkChoiceUpdatedRequest;
268-
CHECK(spawn_and_wait(sync_.fork_choice_updated(request, 1ms)).payload_status.status == rpc::PayloadStatus::kInvalidStr);
268+
CHECK(spawn_and_wait(sync_.fork_choice_updated(request, 1ms)).payload_status.status == std::string{rpc::PayloadStatus::kInvalidStr});
269269
}
270270

271271
static const rpc::ForkChoiceUpdatedRequest kValidForkChoiceUpdatedRequest{
@@ -286,7 +286,7 @@ TEST_CASE_METHOD(PoSSyncTest, "PoSSync::fork_choice_updated.get_header1_timeout"
286286
co_return BlockHeader{};
287287
}));
288288

289-
CHECK(spawn_and_wait(sync_.fork_choice_updated(request, 1ms)).payload_status.status == rpc::PayloadStatus::kSyncingStr);
289+
CHECK(spawn_and_wait(sync_.fork_choice_updated(request, 1ms)).payload_status.status == std::string{rpc::PayloadStatus::kSyncingStr});
290290
}
291291

292292
TEST_CASE_METHOD(PoSSyncTest, "PoSSync::fork_choice_updated.get_header2_timeout", "[sync]") {
@@ -304,7 +304,7 @@ TEST_CASE_METHOD(PoSSyncTest, "PoSSync::fork_choice_updated.get_header2_timeout"
304304
co_return BlockHeader{};
305305
}));
306306

307-
CHECK(spawn_and_wait(sync_.fork_choice_updated(request, 1ms)).payload_status.status == rpc::PayloadStatus::kSyncingStr);
307+
CHECK(spawn_and_wait(sync_.fork_choice_updated(request, 1ms)).payload_status.status == std::string{rpc::PayloadStatus::kSyncingStr});
308308
}
309309

310310
} // namespace silkworm::chainsync

0 commit comments

Comments
 (0)