googleapis / googleapis/google-cloud-java

[java-spanner] SpannerImplTest.testSpannerClosed test needs to detect if Spanner emulator is running

Ouverte
#12,238 0 commentaires 0 réactions 1 personne assignée Réclamée par @rahul2393 Voir sur GitHub
api: spanner
Langage dominant
Java
Étoiles
2.1k
Forks
1.2k
Merge moyen
1 j 23 h
PR mergées (30 j)
154

Description

Coming here from my PR https://github.com/googleapis/java-spanner/pull/3900 in which I've seen these consistent failures

```shell
Error: com.google.cloud.spanner.SpannerImplTest.testSpannerClosed -- Time elapsed: 0.024 s <<< ERROR!
```

The test fails for both the emulator tests and multiplexed sessions too. We need guards to skip this test if an emulator isn't running or if it isn't, it needs to be running correctly.

Please fix this so that it doesn't cause CI to red and mislead contributors into thinking their code is wrong.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.