diff options
Diffstat (limited to 'app/plugin_deadlock_test.go')
-rw-r--r-- | app/plugin_deadlock_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/plugin_deadlock_test.go b/app/plugin_deadlock_test.go index 381206943..1dcaaa228 100644 --- a/app/plugin_deadlock_test.go +++ b/app/plugin_deadlock_test.go @@ -45,7 +45,7 @@ func TestPluginDeadlock(t *testing.T) { func (p *MyPlugin) MessageWillBePosted(c *plugin.Context, post *model.Post) (*model.Post, string) { if _, from_plugin := post.Props["from_plugin"]; from_plugin { - return post, "" + return nil, "" } p.API.CreatePost(&model.Post{ @@ -57,7 +57,7 @@ func TestPluginDeadlock(t *testing.T) { }, }) - return post, "" + return nil, "" } func main() { @@ -120,7 +120,7 @@ func TestPluginDeadlock(t *testing.T) { func (p *MyPlugin) MessageWillBePosted(c *plugin.Context, post *model.Post) (*model.Post, string) { if _, from_plugin := post.Props["from_plugin"]; from_plugin { - return post, "" + return nil, "" } p.API.CreatePost(&model.Post{ @@ -132,7 +132,7 @@ func TestPluginDeadlock(t *testing.T) { }, }) - return post, "" + return nil, "" } func main() { |