Skip to content

Commit e618942

Browse files
fix(pkg): fix stuff after moving optimizely to pkg (#136)
1 parent 1a60022 commit e618942

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
language: minimal
2424
install: skip
2525
before_script:
26-
- mkdir $HOME/travisci-tools && pushd $HOME/travisci-tools && git init && git pull https://[email protected]/pkg/travisci-tools.git && popd
26+
- mkdir $HOME/travisci-tools && pushd $HOME/travisci-tools && git init && git pull https://[email protected]/optimizely/travisci-tools.git && popd
2727
script:
2828
# TODO: Remove sohail/gosdkonly branch specification here, after
2929
# we can run FSC tests on master: https://optimizely.atlassian.net/browse/OASIS-5425
@@ -39,7 +39,7 @@ jobs:
3939
env: GIMME_GO_VERSION=1.8.x
4040
before_script:
4141
# GO module was not introduced earlier. need symlink to search in GOPATH
42-
- mkdir -p $GOPATH/src/github.com && pushd $GOPATH/src/github.com && ln -s $HOME/build/pkg pkg && popd
42+
- mkdir -p $GOPATH/src/github.com && pushd $GOPATH/src/github.com && ln -s $HOME/build/optimizely pkg && popd
4343
script:
4444
# Need to download packages explicitly
4545
- go get -v -d ./...

pkg/config/polling_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
const DefaultPollingInterval = 5 * time.Minute // default to 5 minutes for polling
3535

3636
// DatafileURLTemplate is used to construct the endpoint for retrieving the datafile from the CDN
37-
const DatafileURLTemplate = "https://cdn.pkg.com/datafiles/%s.json"
37+
const DatafileURLTemplate = "https://cdn.optimizely.com/datafiles/%s.json"
3838

3939
var cmLogger = logging.GetLogger("PollingConfigManager")
4040

pkg/config/polling_manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func TestDefaultRequester(t *testing.T) {
177177

178178
requester := configManager.requester
179179
assert.NotNil(t, requester)
180-
assert.Equal(t, requester.String(), "{url: https://cdn.pkg.com/datafiles/test_sdk_key.json, timeout: 5s, retries: 1}")
180+
assert.Equal(t, requester.String(), "{url: https://cdn.optimizely.com/datafiles/test_sdk_key.json, timeout: 5s, retries: 1}")
181181
}
182182

183183
func TestPollingInterval(t *testing.T) {

0 commit comments

Comments
 (0)