Skip to content

Commit

Permalink
fix: slower fake server
Browse files Browse the repository at this point in the history
  • Loading branch information
Viviane Rehor committed Jul 23, 2024
1 parent 3fc98d4 commit a42171c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/test/skyle_simulated_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class SkyleSimulatedService extends SkyleServiceBase {

List<Point> gazes = List.generate(200, (index) {
return Point(
x: Random.secure().nextInt(1920).toDouble(),
y: Random.secure().nextInt(1080).toDouble(),
x: 150 + Random.secure().nextInt(100).toDouble(),
y: 0 + Random.secure().nextInt(100).toDouble(),
);
});

Expand Down Expand Up @@ -104,7 +104,7 @@ class SkyleSimulatedService extends SkyleServiceBase {
//
} else {
for (final pt in List.generate(pts.value, (index) => index)) {
await Future.delayed(const Duration(milliseconds: 100));
await Future.delayed(const Duration(milliseconds: 2000));
if (abort) return;
yield CalibMessages()
..calibPoint = CalibPoint(
Expand Down Expand Up @@ -162,7 +162,7 @@ class SkyleSimulatedService extends SkyleServiceBase {
while (!call.isCanceled) {
for (final gaze in gazes) {
yield gaze;
await Future.delayed(const Duration(milliseconds: 20));
await Future.delayed(const Duration(milliseconds: 1000));
}
}
}
Expand Down

0 comments on commit a42171c

Please sign in to comment.