Remove race in tests.

This commit is contained in:
jregan
2020-05-23 17:51:32 -07:00
parent d2c205b082
commit a193129920
3 changed files with 3 additions and 16 deletions

View File

@@ -206,7 +206,8 @@ func (l *Loader) loadGoPlugin(id resid.ResId) (resmap.Configurable, error) {
}
absPath := l.absolutePluginPath(id) + ".so"
if !utils.FileExists(absPath) {
return nil, fmt.Errorf("cannot find Go object code '%s'", absPath)
return nil, fmt.Errorf(
"expected file with Go object code at: %s", absPath)
}
log.Printf("Attempting plugin load from '%s'", absPath)
p, err := plugin.Open(absPath)