There was an error while loading. Please reload this page.
1 parent e7758e9 commit 25ee69fCopy full SHA for 25ee69f
1 file changed
plugin/manager_test.go
@@ -150,7 +150,11 @@ func (s *ManagerSuite) TestInitializePlugin_noOpIfEmpty() {
150
func (s *ManagerSuite) TestInitializePlugin_noOpIfDotFile() {
151
tmpDir := test.NewTmpDir("gotify_testinitializeplugin_dotfile")
152
defer tmpDir.Clean()
153
- os.Mkdir(tmpDir.Path(".test"), 0o755)
+ f, err := os.Create(tmpDir.Path(".test"))
154
+ assert.NoError(s.T(), err)
155
+ _, err = f.WriteString("dummy")
156
157
+ assert.NoError(s.T(), f.Close())
158
assert.Nil(s.T(), s.manager.loadPlugins(tmpDir.Path()))
159
}
160
0 commit comments