From 1e3698268726b36a12ef95af3bb35a5743bd18a8 Mon Sep 17 00:00:00 2001 From: DanB Date: Sat, 9 Nov 2019 00:09:54 +0100 Subject: [PATCH] Updating task tests with MetaAct as prefix --- engine/task_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/task_test.go b/engine/task_test.go index 3693ac5f3..67c246e99 100644 --- a/engine/task_test.go +++ b/engine/task_test.go @@ -75,7 +75,7 @@ func TestTaskAsMavigableMap(t *testing.T) { func TestTaskFieldAsinterface(t *testing.T) { //empty check task := new(Task) - fldPath := []string{utils.UUID, utils.ActionsID} + fldPath := []string{utils.MetaAct, utils.UUID, utils.ActionsID} rcv, err := task.FieldAsInterface(fldPath) eOut := "" if err != nil { @@ -119,7 +119,7 @@ func TestTaskFieldAsString(t *testing.T) { AccountID: "test2", ActionsID: "test3", } - fldPath = []string{utils.UUID, "string2"} + fldPath = []string{utils.MetaAct, utils.UUID, "string2"} eOut = "test" rcv, err = task.FieldAsString(fldPath) if err != nil { @@ -129,7 +129,7 @@ func TestTaskFieldAsString(t *testing.T) { t.Errorf("Expecting: %q, received: %q", eOut, rcv) } //AccountID check - fldPath = []string{utils.AccountID, "string2"} + fldPath = []string{utils.MetaAct, utils.AccountID, "string2"} eOut = "test2" rcv, err = task.FieldAsString(fldPath) if err != nil { @@ -139,7 +139,7 @@ func TestTaskFieldAsString(t *testing.T) { t.Errorf("Expecting: %q, received: %q", eOut, rcv) } //ActionsID check - fldPath = []string{utils.ActionsID, "string2"} + fldPath = []string{utils.MetaAct, utils.ActionsID, "string2"} eOut = "test3" rcv, err = task.FieldAsString(fldPath) if err != nil { @@ -149,7 +149,7 @@ func TestTaskFieldAsString(t *testing.T) { t.Errorf("Expecting: %q, received: %q", eOut, rcv) } //default check - fldPath = []string{"default", "case"} + fldPath = []string{utils.MetaAct, "default", "case"} eOut = "" rcv, err = task.FieldAsString(fldPath) if err == nil {