Skip to content

Commit

Permalink
test: Fix unit tests when run locally from Mac OS (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin authored Oct 21, 2024
1 parent ed3af1e commit 4cdd782
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ public static String userAgent(String format) {
}

public static String userAgent(String format, String driverVersion, String javaVersion, String osName, String osVersion) {
return String.format(format, driverVersion, javaVersion, osName, osVersion);
// Mac OS is renamed to Darwin in the user agent string
return String.format(format, driverVersion, javaVersion, osName, osVersion).replace("Mac OS X", "Darwin");
}

public static String osName() {
Expand Down

0 comments on commit 4cdd782

Please sign in to comment.