Merge PR #2402: Skip LCD test TestVersion when no env var

This commit is contained in:
Alexander Bezobchuk 2018-09-25 18:47:28 +00:00 committed by Christopher Goes
parent 15e848e43c
commit 04487ca5db
1 changed files with 5 additions and 0 deletions

View File

@ -120,6 +120,11 @@ func TestKeys(t *testing.T) {
} }
func TestVersion(t *testing.T) { func TestVersion(t *testing.T) {
// skip the test if the VERSION environment variable has not been set
if version.Version == "" {
t.SkipNow()
}
cleanup, _, port := InitializeTestLCD(t, 1, []sdk.AccAddress{}) cleanup, _, port := InitializeTestLCD(t, 1, []sdk.AccAddress{})
defer cleanup() defer cleanup()