spanner: fix TestClient_WithGRPCConnectionPoolAndNumChannels_Misconfigured test (#2539)

diff --git a/spanner/client_test.go b/spanner/client_test.go
index fa32044..c48d8c5 100644
--- a/spanner/client_test.go
+++ b/spanner/client_test.go
@@ -1735,12 +1735,12 @@
 	// Deliberately misconfigure NumChannels and ConnPool.
 	configuredNumChannels := 8
 	configuredConnPool := 16
-	_, err := NewClientWithConfig(
-		context.Background(),
-		"projects/p/instances/i/databases/d",
-		ClientConfig{NumChannels: configuredNumChannels},
-		option.WithGRPCConnectionPool(configuredConnPool),
-	)
+
+	_, opts, serverTeardown := NewMockedSpannerInMemTestServer(t)
+	defer serverTeardown()
+	opts = append(opts, option.WithGRPCConnectionPool(configuredConnPool))
+
+	_, err := NewClientWithConfig(context.Background(), "projects/p/instances/i/databases/d", ClientConfig{NumChannels: configuredNumChannels}, opts...)
 	msg := "Connection pool mismatch:"
 	if err == nil {
 		t.Fatalf("Error mismatch\nGot: nil\nWant: %s", msg)