We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddbdf59 commit 52eebb0Copy full SHA for 52eebb0
internal/integtest/integtest.go
@@ -79,7 +79,7 @@ func AddCompressorToURI(uri string) string {
79
80
// AddTestServerAPIVersion adds the latest server API version in a ServerAPIOptions to passed-in opts.
81
func AddTestServerAPIVersion(opts *options.ClientOptions) {
82
- if os.Getenv("REQUIRE_API_VERSION") == "true" {
+ if opts != nil && os.Getenv("REQUIRE_API_VERSION") == "true" {
83
opts.SetServerAPIOptions(options.ServerAPI(driver.TestServerAPIVersion))
84
}
85
0 commit comments