Relax time tolerance on KMS test, limit to platforms with unix sockets available

This commit is contained in:
Jordan Liggitt
2018-02-28 22:40:37 -05:00
parent 07240b7166
commit ed2f4e0426
3 changed files with 157 additions and 11 deletions

View File

@@ -1,3 +1,5 @@
// +build !windows
/*
Copyright 2017 The Kubernetes Authors.
@@ -141,7 +143,7 @@ func getDEKFromKMSPlugin(pluginMock *base64Plugin) ([]byte, error) {
select {
case e := <-pluginMock.encryptRequest:
return e.Plain, nil
case <-time.After(1 * time.Microsecond):
case <-time.After(time.Second):
return nil, fmt.Errorf("timed-out while getting encryption request from KMS Plugin Mock")
}
}