fix(watch): corrige l'URL serveur et ajoute les tests associes (#186)
Aligne http_api_client.dart avec la config watch (build.gradle.kts, WatchHeartRateCollector) et couvre le comportement par des tests. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -18,7 +18,7 @@ void main() {
|
||||
test('defaultBaseUrl uses Android emulator host without env override', () {
|
||||
expect(
|
||||
HttpApiClient.defaultBaseUrlFor(isAndroid: true),
|
||||
'http://10.0.2.2:8080',
|
||||
'http://10.0.2.2:8090',
|
||||
);
|
||||
});
|
||||
|
||||
@ -26,9 +26,9 @@ void main() {
|
||||
expect(
|
||||
HttpApiClient.defaultBaseUrlFor(
|
||||
isAndroid: true,
|
||||
configuredBaseUrl: ' http://192.168.1.42:8080 ',
|
||||
configuredBaseUrl: ' http://192.168.1.75:8090 ',
|
||||
),
|
||||
'http://192.168.1.42:8080',
|
||||
'http://192.168.1.75:8090',
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user