Skip to content

Commit

Permalink
getuid
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiusens committed Apr 10, 2020
1 parent b1f0df3 commit 10c8405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/build_providers/lxd/test_lxd.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_create(self):
self.fake_pylxd_client.containers.create_mock.assert_called_once_with(
config={
"name": "snapcraft-project-name",
"raw.idmap": "both 1000 0",
"raw.idmap": f"both {os.getuid()} 0",
"source": {
"mode": "pull",
"type": "image",
Expand Down Expand Up @@ -327,7 +327,7 @@ def test_create_for_type_base(self):
self.fake_pylxd_client.containers.create_mock.assert_called_once_with(
config={
"name": "snapcraft-core18",
"raw.idmap": "both 1000 0",
"raw.idmap": f"both {os.getuid()} 0",
"source": {
"mode": "pull",
"type": "image",
Expand Down

0 comments on commit 10c8405

Please sign in to comment.