Skip to content

Commit f94247e

Browse files
committed
Updated tests
1 parent 3a86455 commit f94247e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

service/api/configs_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/stretchr/testify/assert"
1313
)
1414

15-
func TestHTTPConfigsFetcher_Fetch_Success(t *testing.T) {
15+
func TestHTTPConfigsFetcherFetchSuccess(t *testing.T) {
1616
logger := logging.NewLogger(nil)
1717

1818
// Create mock response
@@ -121,7 +121,7 @@ func TestHTTPConfigsFetcher_Fetch_Success(t *testing.T) {
121121
// Verify second split (with defaults)
122122
split2 := result.FeatureFlags.Splits[1]
123123
assert.Equal(t, "config2", split2.Name)
124-
assert.Equal(t, "ACTIVE", split2.Status) // Default
124+
assert.Equal(t, "ACTIVE", split2.Status) // Default
125125
assert.Equal(t, "user", split2.TrafficTypeName) // Default
126126
assert.Equal(t, "off", split2.DefaultTreatment)
127127
assert.Equal(t, int64(200), split2.ChangeNumber)
@@ -137,7 +137,7 @@ func TestHTTPConfigsFetcher_Fetch_Success(t *testing.T) {
137137
assert.Equal(t, int64(300), result.RuleBasedSegments.RuleBasedSegments[0].ChangeNumber)
138138
}
139139

140-
func TestHTTPConfigsFetcher_Fetch_EmptyConfigs(t *testing.T) {
140+
func TestHTTPConfigsFetcherFetchEmptyConfigs(t *testing.T) {
141141
logger := logging.NewLogger(nil)
142142

143143
// Create mock response with no configs
@@ -179,7 +179,7 @@ func TestHTTPConfigsFetcher_Fetch_EmptyConfigs(t *testing.T) {
179179
assert.Equal(t, 0, len(result.RuleBasedSegments.RuleBasedSegments))
180180
}
181181

182-
func TestHTTPConfigsFetcher_Fetch_HTTPError(t *testing.T) {
182+
func TestHTTPConfigsFetcherFetchHTTPError(t *testing.T) {
183183
logger := logging.NewLogger(nil)
184184

185185
// Create test server that returns error
@@ -205,7 +205,7 @@ func TestHTTPConfigsFetcher_Fetch_HTTPError(t *testing.T) {
205205
assert.Nil(t, result)
206206
}
207207

208-
func TestHTTPConfigsFetcher_Fetch_InvalidJSON(t *testing.T) {
208+
func TestHTTPConfigsFetcherFetchInvalidJSON(t *testing.T) {
209209
logger := logging.NewLogger(nil)
210210

211211
// Create test server that returns invalid JSON
@@ -231,7 +231,7 @@ func TestHTTPConfigsFetcher_Fetch_InvalidJSON(t *testing.T) {
231231
assert.Nil(t, result)
232232
}
233233

234-
func TestHTTPConfigsFetcher_Fetch_WithDefaultConditions(t *testing.T) {
234+
func TestHTTPConfigsFetcherFetchWithDefaultConditions(t *testing.T) {
235235
logger := logging.NewLogger(nil)
236236

237237
// Create mock response with config that has no conditions

0 commit comments

Comments
 (0)