Skip to content

Commit df73667

Browse files
fix(client/test): verify mock server binary exists after compilation (#215)
Add explicit check to confirm the compiled mock server binary actually exists at the expected path after compilation, providing a more helpful error message if the binary is missing.
1 parent a1eb2d9 commit df73667

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/stdio_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ func compileTestServer(outputPath string) error {
2626
if output, err := cmd.CombinedOutput(); err != nil {
2727
return fmt.Errorf("compilation failed: %v\nOutput: %s", err, output)
2828
}
29+
if _, err := os.Stat(outputPath); os.IsNotExist(err) {
30+
return fmt.Errorf("mock server binary not found at %s after compilation", outputPath)
31+
}
2932
return nil
3033
}
3134

0 commit comments

Comments
 (0)