Skip to content

Commit 1f09006

Browse files
committed
fix: fix flutter unit test.
1 parent 8763aec commit 1f09006

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kraken/lib/src/foundation/http_cache.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enum HttpCacheMode {
2525

2626
class HttpCacheController {
2727
// TODO: Add HTTP Cache for Windows and Linux
28-
static HttpCacheMode mode = Platform.isLinux || Platform.isWindows ? HttpCacheMode.NO_CACHE : HttpCacheMode.DEFAULT;
28+
static HttpCacheMode mode = Platform.isWindows ? HttpCacheMode.NO_CACHE : HttpCacheMode.DEFAULT;
2929

3030
static final Map<String, HttpCacheController> _controllers = HashMap();
3131

kraken/test/src/gesture/scroll_physics.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ void main() {
1010
test('createScrollPhysics', () {
1111
ScrollPhysics scrollPhysics = ScrollPhysics.createScrollPhysics();
1212
// In test env, that should be macos env.
13-
expect(Platform.operatingSystem, 'macos');
14-
expect(scrollPhysics.runtimeType.toString(), 'BouncingScrollPhysics');
13+
expect(Platform.operatingSystem, 'linux');
14+
expect(scrollPhysics.runtimeType.toString(), 'ClampingScrollPhysics');
1515
});
1616

1717
test('ScrollPhysics Factory', () {

0 commit comments

Comments
 (0)