Use static MemoryByteStore for analysis server tests.

With this change it takes 150s vs. 220s without it.

Change-Id: I7097052a2520ba9b90da79c9263673dbc0a5705f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/290345
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2023-03-22 01:18:39 +00:00 committed by Commit Queue
parent 00cf2e8311
commit 38565dfe8b

View file

@ -25,7 +25,7 @@ import 'src/utilities/mock_packages.dart';
class AbstractContextTest with ResourceProviderMixin {
static bool _lintRulesAreRegistered = false;
final ByteStore _byteStore = MemoryByteStore();
static final ByteStore _byteStore = MemoryByteStore();
final Map<String, String> _declaredVariables = {};
AnalysisContextCollectionImpl? _analysisContextCollection;