Skip to content
Snippets Groups Projects
Commit ba0e7d15 authored by André Sterba's avatar André Sterba
Browse files

Fix store tests

parent 33c4a43e
No related branches found
No related tags found
1 merge request!150Let user set a name for a device or autogenerate it
Pipeline #72378 passed with warnings
This commit is part of merge request !150. Comments created here will be created in the context of that merge request.
......@@ -422,10 +422,8 @@ func Test_deviceStore_get(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
s := DeviceStore{
store: tt.fields.store,
}
got, err := s.Get(tt.args.id)
s := NewDeviceStore()
got, err := s.Get(FromString(tt.args.id.String()))
if (err != nil) != tt.wantErr {
t.Errorf("get() error = %v, wantErr %v", err, tt.wantErr)
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment