Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Grodien committed Dec 19, 2024
1 parent fc76192 commit 5bb0c58
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:io';

import 'package:das_client/mqtt/mqtt_component.dart';
import 'package:das_client/sfera/sfera_component.dart';
import 'package:das_client/sfera/src/model/journey_profile.dart';
import 'package:das_client/sfera/src/model/sfera_g2b_reply_message.dart';
import 'package:das_client/sfera/src/service/task/request_journey_profile_task.dart';
import 'package:das_client/util/error_code.dart';
Expand Down Expand Up @@ -38,7 +39,7 @@ void main() {

await journeyTask.execute((task, data) {
expect(task, journeyTask);
expect(data, sferaG2bReplyMessage.payload!.journeyProfiles.first);
expect(data!.whereType<JourneyProfile>().first, sferaG2bReplyMessage.payload!.journeyProfiles.first);
}, (task, errorCode) {
fail('Task failed with error code $errorCode');
});
Expand Down

0 comments on commit 5bb0c58

Please sign in to comment.