Backport go_srcs_in_module changes and fix goword failures.

Signed-off-by: James Blair <mail@jamesblair.net>
This commit is contained in:
James Blair
2023-02-24 22:01:41 +13:00
parent 183af509f6
commit 1ea808b5ba
42 changed files with 121 additions and 313 deletions

View File

@@ -1010,7 +1010,7 @@ func TestSyncTrigger(t *testing.T) {
<-n.Chan()
}
// snapshot should snapshot the store and cut the persistent
// TestSnapshot as snapshot should snapshot the store and cut the persistent
func TestSnapshot(t *testing.T) {
be, _ := betesting.NewDefaultTmpBackend(t)
@@ -1165,7 +1165,7 @@ func TestSnapshotOrdering(t *testing.T) {
}
}
// Applied > SnapshotCount should trigger a SaveSnap event
// TestTriggerSnap as Applied > SnapshotCount should trigger a SaveSnap event
func TestTriggerSnap(t *testing.T) {
be, tmpPath := betesting.NewDefaultTmpBackend(t)
defer func() {
@@ -1637,7 +1637,7 @@ func TestPublishV3(t *testing.T) {
Name: "node1", ClientUrls: []string{"http://a", "http://b"}}}, r.ClusterMemberAttrSet)
}
// TestPublishStopped tests that publish will be stopped if server is stopped.
// TestPublishV3Stopped tests that publish will be stopped if server is stopped.
func TestPublishV3Stopped(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
r := newRaftNode(raftNodeConfig{
@@ -1665,7 +1665,7 @@ func TestPublishV3Stopped(t *testing.T) {
srv.publishV3(time.Hour)
}
// TestPublishRetry tests that publish will keep retry until success.
// TestPublishV3Retry tests that publish will keep retry until success.
func TestPublishV3Retry(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
n := newNodeRecorderStream()