Skip to content

Commit 52eebb0

Browse files
committed
minor fix
1 parent ddbdf59 commit 52eebb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/integtest/integtest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func AddCompressorToURI(uri string) string {
7979

8080
// AddTestServerAPIVersion adds the latest server API version in a ServerAPIOptions to passed-in opts.
8181
func AddTestServerAPIVersion(opts *options.ClientOptions) {
82-
if os.Getenv("REQUIRE_API_VERSION") == "true" {
82+
if opts != nil && os.Getenv("REQUIRE_API_VERSION") == "true" {
8383
opts.SetServerAPIOptions(options.ServerAPI(driver.TestServerAPIVersion))
8484
}
8585
}

0 commit comments

Comments
 (0)