Fix etcd tests to use mock executor

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson
2025-03-06 22:29:35 +00:00
committed by Brad Davidson
parent a8bc412422
commit 72bbd676f1
3 changed files with 86 additions and 3 deletions

View File

@@ -399,11 +399,10 @@ func Test_UnitETCD_Start(t *testing.T) {
}
if err := tt.setup(e, &tt.fields.context); err != nil {
t.Errorf("Setup for ETCD.Start() failed = %v", err)
return
t.Fatalf("Setup for ETCD.Start() failed = %v", err)
}
if err := e.Start(tt.fields.context.ctx, tt.args.clientAccessInfo); (err != nil) != tt.wantErr {
t.Errorf("ETCD.Start() error = %v, wantErr %v", err, tt.wantErr)
t.Fatalf("ETCD.Start() error = %v, wantErr %v", err, tt.wantErr)
}
if !tt.wantErr {
memberAddr = e.address