Skip to content

Commit 0140e27

Browse files
committed
testutils: fix ambiguous comment for ApplicationLayer()
The previous comment implied that `ApplicationLayer()` could randomly return either the system tenant's or a secondary tenant's interface. This change clarifies that behavior.
1 parent 13d8c51 commit 0140e27

File tree

1 file changed

+4
-4
lines changed
  • pkg/testutils/serverutils

1 file changed

+4
-4
lines changed

Diff for: pkg/testutils/serverutils/api.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ type TestServerInterface interface {
7474
// the .TenantController() method.
7575
TenantControlInterface
7676

77-
// ApplicationLayer returns the interface to the application layer that is
78-
// exercised by the test. Depending on how the test server is started
79-
// and (optionally) randomization, this can be either the SQL layer
80-
// of a virtual cluster or that of the system interface.
77+
// ApplicationLayer returns the interface to the application layer used
78+
// in testing. If the server starts with tenancy enabled under the default
79+
// tenant option, this refers to the SQL layer of the virtual cluster.
80+
// Otherwise, in single-tenant mode, it refers to the system layer.
8181
ApplicationLayer() ApplicationLayerInterface
8282

8383
// SystemLayer returns the interface to the application layer

0 commit comments

Comments
 (0)