mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Fix swallowed error in scaleio package tests
Test log improvement
This commit is contained in:
parent
5f805a5e66
commit
7ee91d6d54
@ -212,10 +212,13 @@ func TestUtilLoadConfig(t *testing.T) {
|
||||
configFile := path.Join(tmpDir, sioConfigFileName)
|
||||
|
||||
if err := saveConfig(configFile, config); err != nil {
|
||||
t.Fatal("failed while saving data", err)
|
||||
t.Fatalf("failed to save configFile %s error:%v", configFile, err)
|
||||
}
|
||||
|
||||
dataRcvd, err := loadConfig(configFile)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to load configFile %s error:%v", configFile, err)
|
||||
}
|
||||
if dataRcvd[confKey.gateway] != config[confKey.gateway] ||
|
||||
dataRcvd[confKey.system] != config[confKey.system] {
|
||||
t.Fatal("loaded config data not matching saved config data")
|
||||
|
Loading…
Reference in New Issue
Block a user