Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit dadc065

Browse files
achingbrainAlan Shaw
authored and
Alan Shaw
committed
chore: disambiguate pin nodes so they do not fight
1 parent 934a5b2 commit dadc065

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/http-api/inject/dag.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ module.exports = (http) => {
261261

262262
it('pins a node after adding', async () => {
263263
const node = {
264-
foo: 'bar'
264+
foo: 'bar',
265+
disambiguator: Math.random()
265266
}
266267

267268
const res = await api.inject({
@@ -280,7 +281,8 @@ module.exports = (http) => {
280281

281282
it('does not pin a node after adding', async () => {
282283
const node = {
283-
foo: 'bar'
284+
foo: 'bar',
285+
disambiguator: Math.random()
284286
}
285287

286288
const res = await api.inject({

0 commit comments

Comments
 (0)