mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-05 02:59:37 +00:00
Fix etcd tests to use mock executor
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
a8bc412422
commit
72bbd676f1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user