Skip to content

requested changes in https://github.com/k8snetworkplumbingwg/kubemacpool/pull/100#discussion_r388329464 #106

@alonSadan

Description

@alonSadan

#100
in order to keeo track on tohse notes I'm adding them here:

Expect(err).ToNot(HaveOccurred())

  • Maybe we can keep the failure message, here and and in the rest of the Expects. something like :
    Expect(err).ToNot(HaveOccurred(), "failed to apply the new vm object")

Expect(strings.Contains(err.Error(), "failed to allocate requested mac address")).To(Equal(true))

  • maybe check that err is not nil, before checking that the error is as expected?
Expect(err).To(HaveOccurred())
Expect(strings.Contains(err.Error(), "failed to allocate requested mac address")).To(Equal(true))

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