small fixes

This commit is contained in:
Alex Dadgar
2018-09-15 16:42:38 -07:00
parent 260b566c91
commit 32f9da9e07
8 changed files with 49 additions and 67 deletions

View File

@@ -236,7 +236,7 @@ func TestPluginLoader_External_Config_Bad(t *testing.T) {
Config: map[string]interface{}{
"foo": "1",
"bar": "2",
"non-existant": "3",
"non-existent": "3",
},
},
},
@@ -244,7 +244,7 @@ func TestPluginLoader_External_Config_Bad(t *testing.T) {
_, err := NewPluginLoader(lconfig)
require.Error(err)
require.Contains(err.Error(), "No argument or block type is named \"non-existant\"")
require.Contains(err.Error(), "No argument or block type is named \"non-existent\"")
}
func TestPluginLoader_External_VersionOverlap(t *testing.T) {
@@ -452,7 +452,7 @@ func TestPluginLoader_Internal_Config_Bad(t *testing.T) {
Config: map[string]interface{}{
"foo": "1",
"bar": "2",
"non-existant": "3",
"non-existent": "3",
},
},
},
@@ -460,7 +460,7 @@ func TestPluginLoader_Internal_Config_Bad(t *testing.T) {
_, err := NewPluginLoader(lconfig)
require.Error(err)
require.Contains(err.Error(), "No argument or block type is named \"non-existant\"")
require.Contains(err.Error(), "No argument or block type is named \"non-existent\"")
}
func TestPluginLoader_InternalOverrideExternal(t *testing.T) {