Skip to content

Commit

Permalink
added unit test for feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-wm-arthur committed Jan 7, 2022
1 parent 9fdb73e commit cc4e5a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-dolt1-format-go-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Go
name: Test New Format

on:
pull_request:
Expand Down
9 changes: 9 additions & 0 deletions go/store/types/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"bytes"
"context"
"math"
"os"
"strconv"
"strings"
"testing"
Expand Down Expand Up @@ -633,3 +634,11 @@ func TestWriteEmptyUnionList(t *testing.T) {
mustValue(NewList(context.Background(), vrw)),
)
}

func TestNomsBinFormat(t *testing.T) {
if v, ok := os.LookupEnv(doltFormatFeatureFlag); ok && v != "" {
assert.Equal(t, Format_DOLT_1, Format_Default)
} else {
assert.Equal(t, Format_LD_1, Format_Default)
}
}

0 comments on commit cc4e5a3

Please sign in to comment.