From 5f9b377db05159621a1c545592965dc9dcdb8be3 Mon Sep 17 00:00:00 2001 From: Cian Gallagher Date: Tue, 28 Dec 2021 00:24:21 +0000 Subject: [PATCH] EVENT: Update Move() method with path arg --- event/event_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event/event_test.go b/event/event_test.go index d18758a..55eda0a 100644 --- a/event/event_test.go +++ b/event/event_test.go @@ -43,7 +43,7 @@ func TestEvent(t *testing.T) { t.Run("It moves file from one dir to another dir", func(t *testing.T) { event := eventSetup(t) - event.Move() + event.Move(event.Path) // If the file does not exist, log an error if _, err := os.Stat(fmt.Sprintf("%s/%s", event.Destination, event.File)); errors.Is(err, os.ErrNotExist) { @@ -54,7 +54,7 @@ func TestEvent(t *testing.T) { t.Run("It does not move file from one dir to another dir", func(t *testing.T) { event := eventSetup(t) event.Destination = "/abcdefg" - err := event.Move() + err := event.Move(event.Path) if err == nil { log.Fatal("event.Move() should have thrown error but didn't.")