Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipeline tests fail "Converting circular structure to JSON"

Sahan Maldeniya July 4, 2019

My pipeline is like below.

image: node:10.15.3

pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- npm install
- npm test
services:
- postgres
definitions:
services:
postgres:
image: postgres:11.4
variables:
POSTGRES_USER:<user>
POSTGRES_PASSWORD: <password>
POSTGRES_DB: <db>

 

when i locally .execute test suite it works fine. But when tries to execute with pipeline it fails with above exception. 

 

1) "before all" hook in "{root}" 0 passing (170ms) 1 failing 1) "before all" hook in "{root}": TypeError: Converting circular structure to JSON at JSON.stringify (<anonymous>) at tryCatcher (node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (node_modules/bluebird/js/release/promise.js:512:31) at Promise._settlePromise (node_modules/bluebird/js/release/promise.js:569:18) at Promise._settlePromise0 (node_modules/bluebird/js/release/promise.js:614:10) at Promise._settlePromises (node_modules/bluebird/js/release/promise.js:693:18) at Async._drainQueue (node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues [as _onImmediate] (node_modules/bluebird/js/release/async.js:17:14)npm ERR! Test failed. See above for more details.

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events