Skip to content

Object.create() occasionally returns results out of order #5139

Closed
@kevinburke

Description

@kevinburke

Let's say I do

Users.create([{
    'email': 'kev@inburke.com',
    'password': 'hunter2'
}, {
    'email': 'foo@example.com',
    'password': 'foobar'
}]).then(function(users) {
    users[0].email.should.equal "kev@inburke.com";
});

Occasionally we would see this assertion fail. Running Postgres in a VM, on a small dataset.

Is this behavior expected? If it is, maybe it should be documented?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions