mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Merge pull request #51388 from alrs/fix-scaleio-swallowed-error
Automatic merge from submit-queue (batch tested with PRs 51174, 51363, 51087, 51382, 51388) Fix swallowed error in scaleio package tests **What this PR does / why we need it**: Fixes a dropped error in the tests of the scaleio package. **Release note**: ```release-note NONE ```
This commit is contained in:
@@ -212,10 +212,13 @@ func TestUtilLoadConfig(t *testing.T) {
|
|||||||
configFile := path.Join(tmpDir, sioConfigFileName)
|
configFile := path.Join(tmpDir, sioConfigFileName)
|
||||||
|
|
||||||
if err := saveConfig(configFile, config); err != nil {
|
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)
|
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] ||
|
if dataRcvd[confKey.gateway] != config[confKey.gateway] ||
|
||||||
dataRcvd[confKey.system] != config[confKey.system] {
|
dataRcvd[confKey.system] != config[confKey.system] {
|
||||||
t.Fatal("loaded config data not matching saved config data")
|
t.Fatal("loaded config data not matching saved config data")
|
||||||
|
Reference in New Issue
Block a user