chore: cleanup unused imports and analyzer warnings
This commit is contained in:
parent
e9315bbb8d
commit
25abed35c4
|
|
@ -92,7 +92,7 @@ void main() {
|
||||||
if (!olmEnabled) return;
|
if (!olmEnabled) return;
|
||||||
|
|
||||||
FakeMatrixApi.calledEndpoints.clear();
|
FakeMatrixApi.calledEndpoints.clear();
|
||||||
client.encryption!.olmManager
|
await client.encryption!.olmManager
|
||||||
.handleDeviceOneTimeKeysCount({'signed_curve25519': 20}, null);
|
.handleDeviceOneTimeKeysCount({'signed_curve25519': 20}, null);
|
||||||
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload');
|
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload');
|
||||||
expect(
|
expect(
|
||||||
|
|
@ -100,7 +100,7 @@ void main() {
|
||||||
true);
|
true);
|
||||||
|
|
||||||
FakeMatrixApi.calledEndpoints.clear();
|
FakeMatrixApi.calledEndpoints.clear();
|
||||||
client.encryption!.olmManager
|
await client.encryption!.olmManager
|
||||||
.handleDeviceOneTimeKeysCount({'signed_curve25519': 70}, null);
|
.handleDeviceOneTimeKeysCount({'signed_curve25519': 70}, null);
|
||||||
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload')
|
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload')
|
||||||
.timeout(Duration(milliseconds: 50), onTimeout: () => '');
|
.timeout(Duration(milliseconds: 50), onTimeout: () => '');
|
||||||
|
|
@ -109,7 +109,8 @@ void main() {
|
||||||
false);
|
false);
|
||||||
|
|
||||||
FakeMatrixApi.calledEndpoints.clear();
|
FakeMatrixApi.calledEndpoints.clear();
|
||||||
client.encryption!.olmManager.handleDeviceOneTimeKeysCount(null, []);
|
await client.encryption!.olmManager
|
||||||
|
.handleDeviceOneTimeKeysCount(null, []);
|
||||||
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload');
|
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload');
|
||||||
expect(
|
expect(
|
||||||
FakeMatrixApi.calledEndpoints.containsKey('/client/v3/keys/upload'),
|
FakeMatrixApi.calledEndpoints.containsKey('/client/v3/keys/upload'),
|
||||||
|
|
@ -117,7 +118,7 @@ void main() {
|
||||||
|
|
||||||
// this will upload keys because we assume the key count is 0, if the server doesn't send one
|
// this will upload keys because we assume the key count is 0, if the server doesn't send one
|
||||||
FakeMatrixApi.calledEndpoints.clear();
|
FakeMatrixApi.calledEndpoints.clear();
|
||||||
client.encryption!.olmManager
|
await client.encryption!.olmManager
|
||||||
.handleDeviceOneTimeKeysCount(null, ['signed_curve25519']);
|
.handleDeviceOneTimeKeysCount(null, ['signed_curve25519']);
|
||||||
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload');
|
await FakeMatrixApi.firstWhereValue('/client/v3/keys/upload');
|
||||||
expect(
|
expect(
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ import 'package:matrix/src/models/timeline_chunk.dart';
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
import 'fake_client.dart';
|
import 'fake_client.dart';
|
||||||
import 'fake_matrix_api.dart';
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
group('Timeline', () {
|
group('Timeline', () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue