Skip to content
Snippets Groups Projects
Commit d96ddaa8 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

correct test

parent 261b811e
No related branches found
No related tags found
No related merge requests found
Pipeline #125268 failed
This commit is part of merge request !405. Comments created here will be created in the context of that merge request.
......@@ -124,6 +124,7 @@ func TestNewUpdateEvent(t *testing.T) {
func TestNewMneUpdateEvent(t *testing.T) {
type args struct {
entityID uuid.UUID
paths []string
}
tests := []struct {
name string
......@@ -134,6 +135,7 @@ func TestNewMneUpdateEvent(t *testing.T) {
name: "should create a new update event",
args: args{
entityID: getTestEntityUUID(),
paths: []string{"some/random/path"},
},
want: Event{
ID: uuid.New(),
......@@ -145,7 +147,7 @@ func TestNewMneUpdateEvent(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got := NewMneUpdateEvent(tt.args.entityID, []string{"some/random/path"})
got := NewMneUpdateEvent(tt.args.entityID, tt.args.paths)
if !reflect.DeepEqual(got.EntityID, tt.want.EntityID) {
t.Errorf("NewMneUpdateEvent().EntityID = %v, want %v", got, tt.want)
......@@ -154,6 +156,10 @@ func TestNewMneUpdateEvent(t *testing.T) {
if !reflect.DeepEqual(got.Type, tt.want.Type) {
t.Errorf("NewMneUpdateEvent().Type = %v, want %v", got, tt.want)
}
if !reflect.DeepEqual(got.Paths, tt.want.Paths) {
t.Errorf("NewMneUpdateEvent().Type = %v, want %v", got, tt.want)
}
})
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment