Skip to content

Commit 8ff6d41

Browse files
authored
test(collector): enabled config precedence tests (#2480)
1 parent ab98b76 commit 8ff6d41

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/collector/test/unit/src/util/normalizeConfig.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('util.normalizeConfig', () => {
3939
});
4040

4141
describe('agentHost', () => {
42-
it.skip('should use env over config over default', () => {
42+
it('should use env over config over default', () => {
4343
process.env.INSTANA_AGENT_HOST = 'env-host';
4444

4545
const config = normalizeConfig({
@@ -65,7 +65,7 @@ describe('util.normalizeConfig', () => {
6565
});
6666

6767
describe('agentPort', () => {
68-
it.skip('should use env over config over default', () => {
68+
it('should use env over config over default', () => {
6969
process.env.INSTANA_AGENT_PORT = '9999';
7070

7171
const config = normalizeConfig({
@@ -99,7 +99,7 @@ describe('util.normalizeConfig', () => {
9999
});
100100

101101
describe('agentRequestTimeout', () => {
102-
it.skip('should use env over config over default', () => {
102+
it('should use env over config over default', () => {
103103
process.env.INSTANA_AGENT_REQUEST_TIMEOUT = '8000';
104104

105105
const config = normalizeConfig({
@@ -133,14 +133,14 @@ describe('util.normalizeConfig', () => {
133133
});
134134

135135
describe('autoProfile', () => {
136-
it.skip('should use env over config over default', () => {
136+
it('should use env over config over default', () => {
137137
process.env.INSTANA_AUTO_PROFILE = 'true';
138138

139139
const config = normalizeConfig({
140140
autoProfile: false
141141
});
142142

143-
expect(config.autoProfile).to.equal('true');
143+
expect(config.autoProfile).to.equal(true);
144144
});
145145

146146
it('should use config when env is not set', () => {

0 commit comments

Comments
 (0)