Skip to content

Commit 58e38a3

Browse files
authored
fix prefix plugin unit-test (#1575)
Signed-off-by: Maroon Ayoub <[email protected]>
1 parent a7738f6 commit 58e38a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/epp/scheduling/framework/plugins/multi/prefix/plugin_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ func TestPrefixPluginChatCompletionsGrowth(t *testing.T) {
276276
},
277277
}
278278
plugin.PreRequest(context.Background(), req1, schedulingResult, 0)
279+
plugin.wg.Wait()
279280

280281
// Second request adds assistant response and new user message (conversation grows)
281282
req2 := &types.LLMRequest{
@@ -308,6 +309,7 @@ func TestPrefixPluginChatCompletionsGrowth(t *testing.T) {
308309

309310
// Simulate pod1 was picked again
310311
plugin.PreRequest(context.Background(), req2, schedulingResult, 0)
312+
plugin.wg.Wait()
311313

312314
// Third request continues the conversation even further
313315
req3 := &types.LLMRequest{

0 commit comments

Comments
 (0)